package net.sangpil.applications.project.architecture.Building3DViewerWithFlv
{
	import flash.display.BitmapData;
	import flash.display.Sprite;
	import flash.geom.ColorTransform;
	import flash.geom.Point;
	import flash.geom.Rectangle;

	public class CapturePad extends Sprite
	{
		private var bmd:BitmapData;
		private var trf:ColorTransform;
		public function CapturePad()
		{
			super();
			this.init();
		}
		
		private function init():void
		{ 
			this.bmd = new BitmapData(102, 216, true, 0x00000000);
			this.graphics.beginBitmapFill(this.bmd);
			this.graphics.drawRect(0,0,102, 216);
			this.graphics.endFill();
			
			this.trf = new ColorTransform(0, 0, 0, 0);
			
			this.buttonMode = true;
		}
		
		public function reset():void
		{
			this.bmd.colorTransform(new Rectangle(0,0,102,216), this.trf);
		}
		
		public function setPixel(point:Point, col:uint):void
		{
			this.bmd.setPixel32(point.x, point.y, col);
		}
	}
}